
<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts modal="true">

</x:HeaderParts>


<x:MainPartsTag modal="true">
	<x:zone name="MainZone">
		<x:Form action="org/users.shtml">
			<x:ParamsParts>
				<x:TextField name="id" type="hidden"></x:TextField>
				<x:TextField name="userId" type="hidden" />
			</x:ParamsParts>
			<x:DataViewParts>
				<x:PanelBody>
					<tr>
						<td>用户名</td>
						<td><x:TextField name="mobile" maxLen="50" title="用户名" style="width:200px"
								isMust="1" value="users.MOBILE"></x:TextField>
						</td>
					</tr>
					<tr>
						<td>姓名：</td>
						<td><x:TextField name="name" maxLen="50" title="姓名"  style="width:200px"
								 value="users.NAME"></x:TextField>
						</td>
					</tr>
					<tr>
						<td>邮箱：</td>
						<td><x:TextField name="email" maxLen="100" title="邮箱" style="width:200px" dataType="Email"
							 value="users.EMAIL"></x:TextField>
						</td>
					</tr>
					<td>组织机构：</td>
					<td><select name="orgId" style="width:200px">
						<option value="">请选择</option>
						<s:iterator value="orgList">
							<option value="<s:property value='ID'/>"
								<s:if test="users.ORG_ID==ID">selected="selected"</s:if>>
								<s:property value="ORG_NAME" />
							</option>
						</s:iterator>
					</select>
					</td>
					
					<s:if test="users.MOBILE!=null">
					<tr>
						<td>状态：</td>
						<td>	<label id="_jy"><input	type="radio" value="1" name="status"
								<s:if test="users.STATUS==\"1\"">checked="checked"</s:if> />正常</label>
								<label id="_jy"><input	type="radio" value="0" name="status"
								<s:if test="users.STATUS==\"0\"">checked="checked"</s:if> />禁用</label>
						</td>
					</tr>
					</s:if>
				</x:PanelBody>
				<x:PanelFooter>
					<x:ButtonsParts>
						<x:Button value="保存" role="success" size="sm" onclick="dosave()" />

					</x:ButtonsParts>
				</x:PanelFooter>
			</x:DataViewParts>

			<x:JsParts fn="dosave">
function dosave()
	{
		X.Submit("doSave","1",true);
	};

			</x:JsParts>
		</x:Form>
	</x:zone>
</x:MainPartsTag>
